package cn.com.zonesion.rfiddemo.fragment;

import android.annotation.SuppressLint;
import android.view.View;

import butterknife.ButterKnife;
import butterknife.Unbinder;
import cn.com.zonesion.rfiddemo.R;
import cn.com.zonesion.rfiddemo.base.BaseFragment;

@SuppressLint("ValidFragment")
public class ApplicationFragment extends BaseFragment{
    /**
     * Unbinder对象，用来解除ButterKnife与Fragment对象的绑定
     */
    private Unbinder unbinder;
    /**
     * 收拾识别
     */

  @Override
    public View initView() {
        View view = View.inflate(mContext, R.layout.application_item, null);//通过inflater()方法将布局文件转换为一个View对象
        unbinder = ButterKnife.bind(this, view);///将ButterKnife与HistoricalFragment进行绑定，并返回一个Unbinder对象
        return view;
    }

    @Override
    public void initData() {
        super.initData();
    }

    @Override
    public void onDestroyView() {
        //解除ButterKnife与HistoricalFragment的绑定
        unbinder.unbind();
        super.onDestroyView();
    }
}
